#include<iostream>
#include<cstdio>
using namespace std;

#define N 100
int arr[N];
int p1, p2, p3, p4;

int main()
{
	int n;
	cin >> n;
	for (int i = 0; i < n; i++)
	{
		cin >> arr[i];
		if (arr[i] >= 0 && arr[i] <= 18)
			p1++;
		else if (arr[i] >= 19 && arr[i] <= 35)
			p2++; 
		else if (arr[i] >= 36 && arr[i] <= 60)
			p3++; 
		else if (arr[i] >= 61)
			p4++;
	}
	printf("%.2lf%\n", p1 * 1.0 / n * 100);
	printf("%.2lf%\n", p2 * 1.0 / n * 100);
	printf("%.2lf%\n", p3 * 1.0 / n * 100);
	printf("%.2lf%\n", p4 * 1.0 / n * 100);
	
	return 0;
}
